package models

// Shangjuan undefined
type Shangjuan struct {
	ID        int64   `json:"id" gorm:"id"`
	Daibi     float64 `json:"daibi" gorm:"daibi"`         // 赏卷完全分享获得代笔
	Num       int64   `json:"num" gorm:"num"`             // 需要分享几个人
	Userdaibi float64 `json:"userdaibi" gorm:"userdaibi"` // 每个点两人获得矿石数
	Name      string  `json:"name" gorm:"name"`
	Image     string  `json:"image" gorm:"image"`
	Status    int64   `json:"status" gorm:"status"`
	Day       int64   `json:"day" gorm:"day"` // 领取后多久到期 0不限
}

// TableName 表名称
func (*Shangjuan) TableName() string {
	return "shangjuan"
}

// Usershangjuan undefined
type Usershangjuan struct {
	ID              int64   `json:"id" gorm:"id"`
	Uid             int64   `json:"uid" gorm:"uid"`
	Addtime         int64   `json:"addtime" gorm:"addtime"`
	Day             int64   `json:"day" gorm:"day"`
	Name            string  `json:"name" gorm:"name"`
	Image           string  `json:"image" gorm:"image"`
	Daibi           float64 `json:"daibi" gorm:"daibi"`
	Num             int64   `json:"num" gorm:"num"`
	Userdaibi       float64 `json:"userdaibi" gorm:"userdaibi"`
	Seccessnum      int64   `json:"seccessnum" gorm:"seccessnum"` // 成功点亮数量
	Status          int64   `json:"status" gorm:"status"`         // 1带分享 2已分享 3已领取
	Orderfanshangid int64   `json:"orderfanshangid" gorm:"orderfanshangid"`
	Endtime         int64   `json:"endtime" gorm:"endtime"`
	Shangjuanid     int64   `json:"shangjuanid" gorm:"shangjuanid"`
	State           int64   `json:"state" gorm:"state"`
}

// TableName 表名称
func (*Usershangjuan) TableName() string {
	return "usershangjuan"
}

// Orderfanshangintegral undefined
type Orderfanshangintegral struct {
	ID              int64 `json:"id" gorm:"id"`
	Uid             int64 `json:"uid" gorm:"uid"`
	Integral        int64 `json:"integral" gorm:"integral"`
	Orderfanshangid int64 `json:"orderfanshangid" gorm:"orderfanshangid"`
	State           int64 `json:"state" gorm:"state"`
}

// TableName 表名称
func (*Orderfanshangintegral) TableName() string {
	return "orderfanshangintegral"
}

// Shangjuandianliang undefined
type Shangjuandianliang struct {
	ID              int64   `json:"id" gorm:"id"`
	Usershangjuanid int64   `json:"usershangjuanid" gorm:"usershangjuanid"`
	Addtime         int64   `json:"addtime" gorm:"addtime"`
	Uid             int64   `json:"uid" gorm:"uid"`
	Daibi           float64 `json:"daibi" gorm:"daibi"`
}
type Shangjuandianliangsql struct {
	ID              int64   `json:"id" gorm:"id"`
	Usershangjuanid int64   `json:"usershangjuanid" gorm:"usershangjuanid"`
	Addtime         int64   `json:"addtime" gorm:"addtime"`
	Uid             int64   `json:"uid" gorm:"uid"`
	Daibi           float64 `json:"daibi" gorm:"daibi"`
	Nickname        string  `json:"nickname" gorm:"nickname"` // 昵称
}

// TableName 表名称
func (*Shangjuandianliang) TableName() string {
	return "shangjuandianliang"
}
